package com.authorization.project.authorization.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.authorization.framework.aspectj.lang.annotation.Excel;
import com.authorization.framework.web.domain.BaseEntity;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 授权注册信息对象 authorization
 * 
 * @author 李晓雷
 * @date 2020-04-26
 */
public class Authorization
{
    private static final long serialVersionUID = 1L;

    /** 客户编号 */
    private String userid;

    /** 加密开关 */
    @Excel(name = "加密开关")
    private String issecret;

    /** 主程序版本 */
    @Excel(name = "主程序版本")
    private String mainversion;

    /** 加密服务版本 */
    @Excel(name = "加密服务版本")
    private String secretversion;

    /** 客户全称 */
    @Excel(name = "客户全称")
    private String username;

    /** 购买微服务 */
    @Excel(name = "购买微服务")
    private String services;

    /** 授权开始日期 */
    @Excel(name = "授权开始日期", width = 30, dateFormat = "yyy-MM-dd ")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date begidate;

    /** 停止日期 */
    @Excel(name = "停止日期", width = 30, dateFormat = "yyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date enddate;

    /** 客户数量 */
    @Excel(name = "客户数量")
    private String contacts;

    /** 行为数量 */
    @Excel(name = "行为数量")
    private String behavior;

    /** 创建人 */
    @Excel(name = "创建人")
    private String adduser;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addtime;

    /** 更新时间 */
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    /** 网址 */
    @Excel(name = "网址")
    private String urls;

    /** 机器码（ip+mac地址） */
    @Excel(name = "机器码", readConverterExp = "机器码")
    private String machineCode;

    /** 自定义配置 */
    @Excel(name = "自定义配置")
    private String config;

    /** 产品主键 */
    @Excel(name = "产品主键")
    private Long productId;

    /** 状态 （1已提交 2已审核）*/
    @Excel(name = "状态")
    private String status;

    /** 套餐主键 */
    @Excel(name = "套餐主键")
    private Long packageId;

    /**--------客户编号--------**/
    private String userNumber;

    /** 选中模块集合 */
    private List<Long> moduleArray;

    /** 套餐名称 */
    private String packageName;

    /**产品名称**/
    private String productName;

    /** 更新人*/
    @Excel(name = "更新人")
    private String updateuser;

    /**旧数据和审核数据**/
    private String oldAndAuditStatus;

    /**token**/
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getOldAndAuditStatus() {
        return oldAndAuditStatus;
    }

    public void setOldAndAuditStatus(String oldAndAuditStatus) {
        this.oldAndAuditStatus = oldAndAuditStatus;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }

    public Long getPackageId() {
        return packageId;
    }

    public void setPackageId(Long packageId) {
        this.packageId = packageId;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public List<Long> getModuleArray() {
        return moduleArray;
    }

    public void setModuleArray(List<Long> moduleArray) {
        this.moduleArray = moduleArray;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setIssecret(String issecret) 
    {
        this.issecret = issecret;
    }

    public String getIssecret() 
    {
        return issecret;
    }
    public void setMainversion(String mainversion) 
    {
        this.mainversion = mainversion;
    }

    public String getMainversion() 
    {
        return mainversion;
    }
    public void setSecretversion(String secretversion) 
    {
        this.secretversion = secretversion;
    }

    public String getSecretversion() 
    {
        return secretversion;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setServices(String services) 
    {
        this.services = services;
    }

    public String getServices() 
    {
        return services;
    }
    public void setBegidate(Date begidate) 
    {
        this.begidate = begidate;
    }

    public Date getBegidate() 
    {
        return begidate;
    }
    public void setEnddate(Date enddate) 
    {
        this.enddate = enddate;
    }

    public Date getEnddate() 
    {
        return enddate;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setBehavior(String behavior) 
    {
        this.behavior = behavior;
    }

    public String getBehavior() 
    {
        return behavior;
    }
    public void setAdduser(String adduser) 
    {
        this.adduser = adduser;
    }

    public String getAdduser() 
    {
        return adduser;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setUrls(String urls) 
    {
        this.urls = urls;
    }

    public String getUrls() 
    {
        return urls;
    }
    public void setMachineCode(String machineCode) 
    {
        this.machineCode = machineCode;
    }

    public String getMachineCode() 
    {
        return machineCode;
    }
    public void setConfig(String config) 
    {
        this.config = config;
    }

    public String getConfig() 
    {
        return config;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userid", getUserid())
            .append("issecret", getIssecret())
            .append("mainversion", getMainversion())
            .append("secretversion", getSecretversion())
            .append("username", getUsername())
            .append("services", getServices())
            .append("begidate", getBegidate())
            .append("enddate", getEnddate())
            .append("contacts", getContacts())
            .append("behavior", getBehavior())
            .append("adduser", getAdduser())
            .append("addtime", getAddtime())
            .append("updatetime" , getUpdatetime())
            .append("urls", getUrls())
            .append("machineCode", getMachineCode())
            .append("config", getConfig())
            .append("productId", getProductId())
            .append("packageId", getPackageId())
                .toString();
    }
}
